//
//  ZBRichScrollView.h
//  XZBProduct
//
//  Created by xzb on 2018/8/8.
//  Copyright © 2018年 xzb. All rights reserved.
//

#import <UIKit/UIKit.h>

/*
 UIScrollView仿UITableViewStylePlain悬停
 
 example :
 self.richView = [[ZBRichScrollView alloc] init];
 self.richView.contentSize = CGSizeMake(0, [UIScreen height] * 3);
 [self.view addSubview:self.richView];
 [self.richView mas_makeConstraints:^(MASConstraintMaker *make) {
 if (@available(iOS 11.0, *)) {
 make.top.equalTo(self.view.mas_safeAreaLayoutGuideTop).offset(44);
 } else {
 make.top.offset(44);
 }
 make.left.right.bottom.offset(0);
 }];
 
 NSMutableArray *subView = @[].mutableCopy;
 
 for (NSInteger idx = 0; idx < 10 ; idx++) {
 UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 100 * idx, [UIScreen width], 44)];
 view.backgroundColor = [UIColor zb_randomColor];
 [self.richView addSubview:view];
 [subView addObject:view];
 }
 
 self.richView.targetViews = subView;
 */
@interface ZBRichScrollView : UIScrollView

@property (nonatomic, strong) NSArray<UIView *> *targetViews;

@end
